xm: Reuse VDI if location is same
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 15 Oct 2009 07:31:08 +0000 (08:31 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 15 Oct 2009 07:31:08 +0000 (08:31 +0100)
commitf8e61527db79a580d9d9d5602059ed4db6c06b2d
tree56492364e33a9e04cccb19c82d349ebd4865281a
parent89b6b19a224e7718500a00182e0099f45e877896
xm: Reuse VDI if location is same

In XenAPI mode, when we start a VM by using xm create command, VDIs
are always automatically created for VBDs.  Once we shut down the
VM, then start the VM again, then VDIs are newly created.  As a
result, a vdi.xml file continues to expand.

This patch reuses VDIs if location of the VDIs is same.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xm/xenapi_create.py